﻿@model GuRenFang.Service.Entity.CompanyInfo
@{
    ViewBag.Title = "关于上海古人坊 古装艺术摄影";
}
<section id="leftPanel">
    <div class="leftContainer">
        <div class="LeftHeaderBg">
            <span class="ImageTitle NewsTitleBg"></span>
        </div>
        <div class="LeftContent" id="TopActivities">
            @{Html.RenderAction("_TopFive", "Activities");}
        </div>
        <div class="leftFooter"></div>
    </div>
    <div class="leftContainer">
        <div class="LeftHeaderBg">
            <span class="ImageTitle TipsBg"></span>
        </div>
        <div class="LeftContent" id="contactUs">
             @{Html.RenderPartial("_ContactUS");}
        </div>
        <div class="leftFooter"></div>
    </div>
</section>
<section id="rightPanel">
    <div class="middleContainer">
        <div class="middleTopHader"></div>
        <div class="middleContent" style="height: auto">
            <div class="tabbable">
                <ul class="nav nav-tabs" id="AboutUsNav">
                    <li class="active"><a data-toggle="tab" href="#companyInfo" hidefocus="true">公司简介</a></li>
                    <li class=""><a data-toggle="tab" href="#wangyoudianping" hidefocus="true">网络上的我们</a></li>
                    <li class=""><a data-toggle="tab" href="#suggest" hidefocus="true" id="suggestTab">网友的留言</a></li>
                </ul>
                <div class="tab-content">
                    <div id="companyInfo" class="tab-pane active">
                        @Html.Raw(Model.Content)
                    </div>
                    <div id="wangyoudianping" class="tab-pane">
                        <p>
                            <span class="label label-info">古人坊</span>  以专业的品质和非常完善的服务，在网络上深得网友的青睐，赢得非常良好的口碑。以下点评信息来自<a href="http://www.dianping.com/shop/5376217/review_more"><strong>大众点评网</strong></a>,
                            同时也热烈欢迎各位新老客户发表意见和建议，以鞭策我们不断改进。
                        </p>
                        <p>
                            <img src="~/img/wangyoudianping.gif" alt="网友点评，来自大众点评网" />
                        </p>
                    </div>
                    <div id="suggest" class="tab-pane">
                        @{Html.RenderAction("_Suggestions", "Message");}
                    </div>
                </div>
            </div>
        </div>
        <div class="middleFooter"></div>
    </div>
</section>
<section class="clear-fix"></section>
@section Scripts{
    <script type="text/javascript">
        function getQueryStringRegExp(name) {
            var reg = new RegExp("(^|\\?|&)" + name + "=([^&]*)(\\s|&|$)", "i");
            if (reg.test(location.href)) return unescape(RegExp.$2.replace(/\+/g, " ")); return "";
        };

        $(".pagination ul li a").each(function() {
            var link = $(this).attr("href");
            $(this).attr("href", link + "&tab=suggestions");
        });
        
        if (getQueryStringRegExp("tab") == "suggestions") {
            $('#suggestTab').tab('show');
        }
    </script>
}
